package org.light.framework.mvc;

/**
 * Web请求封装类
 * 
 * @author de.cel
 *
 */
public class Request {

	private String requestMethod;
	private String requestPath;

	public Request(String requestMethod, String requestPath) {
		this.requestMethod = requestMethod;
		this.requestPath = requestPath;
	}

	public String getRequestMethod() {
		return requestMethod;
	}

	public String getRequestPath() {
		return requestPath;
	}

	public boolean equals(Object o) {
			
		if(o instanceof Request){
			Request obj=(Request)o;
			return this.requestMethod.equals(obj.requestMethod)&&this.requestPath.equals(obj.requestPath);
		}else{
			return false;
		}
			
	}
}
